package pta.newch04.ex22;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String id = scanner.next();
        String name = scanner.next();
        double price = scanner.nextDouble();
        Product product = new Product(id, name, price);
        System.out.println(product);
        scanner.close();
    }
}

class Product {
    public Product(String id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return id +"," + name + "," + price;
    }

    private String id;
    private String name;
    private double price;
}